

package forum.server.persistence.old;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "userroot")
public class UserRoot {
    protected List<UserTableEntry> users;
    /**
     * getter for all the users in the table.
     * @return a list of all the users.
     */
    public List<UserTableEntry> getUsers() {
        if (this.users == null) {
            this.users = new ArrayList<UserTableEntry>();
        }
        return this.users;
    }
    /**
     * setter for the users.
     * @param users the new list of users to set the table to.
     */
    public void setUsers(List<UserTableEntry> users) {
        this.users = users;
    }
}
